<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />
</head>

<body>
<a name="top"id="top"></a>
	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>订单管理</a></li>
	<li><a>订单详情</a></li>
	<li><a onClick="javascript:history.back(-1);">返回</a></li>
	</ul>
	</div>

	<div class="formbody">

	<div class="formtitle"><span>订单详情</span></div>
	<ul class="forminfo">
	<?php if(!empty($orderdata['describe_audio'])){?>
	<li><label>交付的音频</label>
	<!-- <label><audio src="<?php echo $orderdata['describe_audio'];?>" controls="controls">您的浏览器不支持 audio 标签。</audio></label><i></i> -->
	<div id="videoWrap"></div>
	</li>
	<?php }?>
	<li>
	<label>自媒体</label>

	<label>{$orderdata['mname']}</label>
	</li>
	<li>
	<form id="formid" name="form1" method="post" action="{:U('/Home/Order/edit_order')}" >
	<input name="oid" id="oid" type="hidden" value="<?php echo $orderdata['id'];?>" />
	<div style="width: 86px;line-height: 34px;display: block;float: left;">专辑</div>
	<div style="float: left;">
	<select name="special" id="special" >
		<option value="0" <?php if($orderdata['specialname'] == 0){echo "selected";}?>>不选择专辑</option>
		<?php foreach ($specialdata as $key => $value) { ?>
		<option value="<?php echo $value['id'];?>" <?php if($orderdata['special'] == $value['id']){echo "selected";}?>><?php echo $value['specialname'];?></option>
		<?php }?>
	</select>
	</div>
	<div style=" margin-left:10px;float: left;"><input type="submit" class="btn" value="确认修改专辑"/></div>
	</form>
	</li>
	<li>
	<label>类型</label>
	<label>
		<switch name="orderdata['type']" >
		<case value="0">讲述类</case>
		<case value="1">情感类</case>
		<case value="2">演绎类</case>
		<case value="3">新闻类</case>
		<case value="4">英文类</case>
		<default />未知
		</switch>
	</label>
	</li>
	<li>
	<label>性别</label>
	<label><input name="sex" type="radio" value="0" disabled="disabled" <?php if($orderdata['sex']==0){echo "checked='checked'";}?> />全部</label>
	<label><input name="sex" type="radio" value="1" disabled="disabled" <?php if($orderdata['sex']==1){echo "checked='checked'";}?> />男</label>
	<label><input name="sex" type="radio" value="2" disabled="disabled" <?php if($orderdata['sex']==2){echo "checked='checked'";}?> />女</label>
	</li>
	<li><label>标题</label>
	<label style="width: 800px;">{$orderdata['title']}</label>
	</li>
	<li><label>文章</label>
	<textarea style="float: left;" name="article" id="article" onkeyup="cal_words()">{$articledata['article']}</textarea><i></i>
	</li>
	<li>
	<label style="width: 120px;">总字数<i id="num">{$orderdata['words']}</i>个</label>
	<label style="width: 120px;">预计用时<i id="ptime">{$orderdata['ptime']}</i>分</label>
	<label style="width: 120px;">原价<i id="cost">{$orderdata['money']}</i>元</label>
	<label style="width: 120px;">现价<i id="cost">{$orderdata['usemoney']}元</i></label>
	</li>
	<li><label>主播等级</label>
	<label><?php if($orderdata['is_collect']){echo "收藏主播";}?></label>
	<label style="width: 150px;">等级：
		<?php foreach ($leveldata as $key => $value) { ?>
		<?php if($value['id']==$orderdata['level']){echo $value['message'];}?>
		<?php }?>
	级</label>
	</li>

	<li><a href="#top"target="_self">返回顶部</a><label>&nbsp;</label><label>&nbsp;</label></li><li><label>&nbsp;</label><label>&nbsp;</label></li>
	</ul>

	</div>

</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
var editor = UE.getEditor('article',{    //content为要编辑的textarea的id
	initialFrameWidth: 800,   //初始化宽度
	initialFrameHeight: 200,   //初始化高度
});
</script>
<script>
$(function() {
	$('#special').comboSelect();
});
</script>
<script src="__PUBLIC__/admin/ckplayer/ckplayer.js"></script>
<script type="text/javascript">
var m3u8 = "<?php echo $orderdata['describe_audio'];?>";
showPlayer(m3u8,'videoWrap')
						// http://www.flashls.org/playlists/test_001/stream_1000k_48k_640x360.m3u8
var PUBLIC = '__PUBLIC__';
function showPlayer(src, id){
	//player
	var flashvars={
			f : '/Public/admin/ckplayer/m3u8.swf',
			a : src,
			c : 0,
			s:4,
			lv:0//注意，如果是直播，需设置lv:1
	};
	var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
	var video=[src];
	CKobject.embed('/Public/admin/ckplayer/ckplayer.swf',id ,'ck-video','300','100%',false, flashvars ,video, params);

}
</script>
</html>
